﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CMN.Models.Interfaces;
using CMN.Entity;
namespace CMN.Models
{
    /// <summary>
    /// 服务组件生成类，用于生成业务服务组件
    /// </summary>
    public sealed class ServiceBuilder
    {

        /// <summary>
        /// 返回Hash记录
        /// </summary>
        /// <returns></returns>
        public static IData2Service<DHT_InfoHashEntity> BuildDHT_InfoHashService()
        {
            return new DHT_InfoHashService();
        }
        /// <summary>
        /// 返回专题详细分类
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_ZTMapEntity> BuildNormal_ZTMapService()
        {
            return new Normal_ZTMapService();
        }

       
            /// <summary>
            /// 返回专题
            /// </summary>
            /// <returns></returns>
            public static IDataService<Normal_ZTEntity> BuildNormal_ZTService()
            {
                return new Normal_ZTService();
            }
        
        /// <summary>
        /// 返回标签
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_TagsEntity> BuildNormal_TagsService()
        {
            return new Normal_TagsService();
        }
        /// <summary>
        /// 返回标签列表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_TagMapEntity> BuildNormal_TagMapService()
        {
            return new Normal_TagMapService();
        }
        /// <summary>
        /// 返回广告列表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_AdvertiseListEntity> BuildNormal_AdvertiseListService()
        {
            return new Normal_AdvertiseListService();
        }
        /// <summary>
        /// 返回采集内容
        /// </summary>
        /// <returns></returns>
        public static IUpdateDataService<Extend_CollectContentEntity> BuildExtend_CollectContentService()
        {
            return new Extend_CollectContentService();
        }
        /// <summary>
        /// 返回采集列表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Extend_CollectLinkInfoEntity> BuildExtend_CollectLinkInfoService()
        {
            return new Extend_CollectLinkInfoService();
        }
        /// <summary>
        /// 返回采集规则设置
        /// </summary>
        /// <returns></returns>
        public static IUpdateDataService<Extend_CollectSetInfoEntity> BuildExtend_CollectSetInfoService()
        {
            return new Extend_CollectSetInfoService();
        }
        /// <summary>
        /// 返回广告
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_AdvertiseEntity> BuildNormal_AdvertiseService()
        {
            return new Normal_AdvertiseService();
        }
        /// <summary>
        /// 返回通知公告
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_NoticeEntity> BuildNormal_NoticeService()
        {
            return new Normal_NoticeService();
        }
        /// <summary>
        /// 返回投票
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_VoteEntity> BuildNormal_VoteService()
        {
            return new Normal_VoteService();
        }
        /// <summary>
        /// 返回投票记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_Vote_RecordEntity> BuildNormal_Vote_RecordService()
        {
            return new Normal_Vote_RecordService();
        }

        /// <summary>
        /// 返回文章
        /// </summary>
        /// <returns></returns>
        public static IDataService<Module_ArticleEntity> BuildModule_ArticleService()
        {
            return new Module_ArticleService();
        }
        /// <summary>
        /// 返回图片
        /// </summary>
        /// <returns></returns>
        public static IDataService<Module_PhotoEntity> BuildModule_PhotoService()
        {
            return new Module_PhotoService();
        }
        /// <summary>
        /// 返回软件
        /// </summary>
        /// <returns></returns>
        public static IDataService<Module_SoftEntity> BuildModule_SoftService()
        {
            return new Module_SoftService();
        }
        /// <summary>
        /// 返回视频
        /// </summary>
        /// <returns></returns>
        public static IDataService<Module_VideoEntity> BuildModule_VideoService()
        {
            return new Module_VideoService();
        }
        /// <summary>
        /// 返回差评记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_AgainstRecordEntity> BuildNormal_AgainstRecordService()
        {
            return new Normal_AgainstRecordService();
        }
        /// <summary>
        /// 返回频道
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_ChannelEntity> BuildNormal_ChannelService()
        {
            return new Normal_ChannelService();
        }
        /// <summary>
        /// 返回点击记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_ClickRecordEntity> BuildNormal_ClickRecordService()
        {
            return new Normal_ClickRecordService();
        }
        /// <summary>
        /// 返回关键词记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_KeywordEntity> BuildNormal_KeywordService()
        {
            return new Normal_KeywordService();
        }
        /// <summary>
        /// 返回友情链接
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_LinkEntity> BuildNormal_LinkService()
        {
            return new Normal_LinkService();
        }
        /// <summary>
        /// 返回模块
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_ModulesEntity> BuildNormal_ModulesService()
        {
            return new Normal_ModulesService();
        }

        /// <summary>
        /// 返回搜索记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_SearchContentEntity> BuildNormal_SearchContentService()
        {
            return new Normal_SearchContentService();
        }
        /// <summary>
        /// 返回模板皮肤
        /// </summary>
        /// <returns></returns>
        public static ISearchDataService<Normal_SkinEntity> BuildNormal_SkinService()
        {
            return new Normal_SkinService();
        }
        /// <summary>
        /// 返回好评记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_SupportRecordEntity> BuildNormal_SupportRecordService()
        {
            return new Normal_SupportRecordService();
        }
        /// <summary>
        /// 返回模板类型
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_TemplateTypeEntity> BuildNormal_TemplateTypeService()
        {
            return new Normal_TemplateTypeService();
        }
        /// <summary>
        /// 返回模板方案
        /// </summary>
        /// <returns></returns>
        public static ISearchDataService<Normal_TemplatesEntity> BuildNormal_TemplatesService()
        {
            return new Normal_TemplatesService();
        }

        /// <summary>
        /// 返回模板详细信息
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_TemplateListEntity> BuildNormal_TemplateListService()
        {
            return new Normal_TemplateListService();
        }
        /// <summary>
        /// 返回缩略图大小
        /// </summary>
        /// <returns></returns>
        public static IDataService<Normal_ThumbnailEntity> BuildNormal_ThumbnailService()
        {
            return new Normal_ThumbnailService();
        }
        /// <summary>
        /// 返回应用字段值
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_FieldValueEntity> BuildSys_FieldValueService()
        {
            return new Sys_FieldValueService();
        }

        /// <summary>
        /// 返回系统应用字段
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_FieldEntity> BuildSys_FieldService()
        {
            return new Sys_FieldService();
        }

        /// <summary>
        /// 返回系统日记表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_EventEntity> BuildSys_EventService()
        {
            return new Sys_EventService();
        }

        /// <summary>
        /// 返回功能模块
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_ModuleEntity> BuildSys_ModuleService()
        {
            return new Sys_ModuleService();
        }
        /// <summary>
        /// 返回模块扩展权限
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_ModuleExtPermissionEntity> BuildSys_ModuleExtPermissionService()
        {
            return new Sys_ModuleExtPermissionService();
        }
        /// <summary>
        /// 返回角色应用权限表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_RolePermissionEntity> BuildSys_RolePermissionService()
        {
            return new Sys_RolePermissionService();
        }
        /// <summary>
        /// 返回角色表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_RolesEntity> BuildSys_RolesService()
        {
            return new Sys_RolesService();
        }
        /// <summary>
        /// 返回用户常用功能
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_UserModuleEntity> BuildSys_UserModuleService()
        {
            return new Sys_UserModuleService();
        }

        /// <summary>
        /// 返回用户表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_UserEntity> BuildSys_UserService()
        {
            return new Sys_UserService();
        }
        /// <summary>
        /// 返回用户角色表
        /// </summary>
        /// <returns></returns>
        public static IDataService<Sys_UserRolesEntity> BuildSys_UserRolesService()
        {
            return new Sys_UserRolesService();
        }
    }
}
